package com.zbl.zblproject.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zbl.zblproject.core.entity.AdminUser;
import com.zbl.zblproject.core.entity.RechargeLog;

import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/11/13
 * 用户接口
 */
public interface UserService {


    List<AdminUser> getLeader();

    /**
     * 根据名称来查询user
     * @param name 用户名称
     * @return 符合条件的用户
     */
    List<AdminUser> searchUser(String name);

    /**
     * 充值
     * @param userId 用户ID
     * @param price  充值金额
     * @return 充值成功或者失败
     */
    RechargeLog recharge(int userId, int operatorId, double price, String remarks, String imgPath);

    IPage<RechargeLog> logPage(int userId, int current, int size);


    IPage<RechargeLog> logPage(int current, int size, String star, String end);

    List<AdminUser> list();


    List<AdminUser> snList(Integer userId);

    List<AdminUser> cashier();

    IPage<AdminUser> page(Integer current, Integer size, String search);

    boolean updateUser(AdminUser user);
}
